package com.jysz.certificate.constant;



/**
 * 参数类别 枚举常量
 * 
 * @author <a href="mailto:javaengine@outlook.com">Kaca Rich</a>
 *
 */
public class ConfigTypeConstants {
	
	public enum ConfigTypes {
		PERFORMANCE_CONFIG("1-1", "绩效管理", "绩效管理参数设置");
		
		private final String key;

		private final String name;
		
		private final String desc;

		private ConfigTypes(String key, String name, String desc) {
			this.key = key;
			this.name = name;
			this.desc =  desc;
		}

		public String getKey() {
			return key;
		}

		public String getName() {
			return name;
		}
		
		public String getDesc() {
			return desc;
		}
	}
	
	
	/**
	 * 留言参数内容
	 * 第一个参数： 字段
	 * 第二个参数：字段名
	 * 第三个参数：字段类型【 0 text, 1 radio ,2 textfile , 3 textarea】
	 * 第四个参数：字段初始化值
	 * 第五个参数：子段页面提交时是否可为空 【0 否, 1 是】
	 */
	public enum PerformanceConfig {//FIXEME:增加第二个参数类型配置时抽出接口。。
		USER_LIST_REMINE_DAY("user_list_remine_day", "人员名单提交结束日(例：2月5，填写5)", 0, "5", 0),
		USER_LIST_REMINE_DAY_QTY("user_list_remine_day_qty", "人员名单提醒日天(提前多少天通知)", 0, "5", 0),
		PM_CONFIRM_FINISH_DAY_QTY("pm_confirm_finish_day_qty", "绩效确认最后确认提醒日(提前多少天通知)", 0, "5", 0);
		
		private final String field;
		private final String name;
		private final int type; 
		private final String value;
		private final int isEmpty;
		
		private PerformanceConfig(String field, String name, int type, String value, int isEmpty) {
			this.field = field;
			this.name = name;
			this.type = type;
			this.value = value;
			this.isEmpty = isEmpty;
		}
		
		public String getField() {
			return field;
		}
		
		public String getName() {
			return name;
		}
		
		public int getType() {
			return type;
		}
		
		public String getValue() {
			return value;
		}
		
		public int getIsEmpty() {
			return isEmpty;
		}

	}
	

}
